package irio.gamer;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import utils.JDouble;
import utils.JTripleValue;
import utils.JVector;
import utils.Vec;
import Logic.GamerParams;

public class PostprocessingPanel extends JPanel {

	public PostprocessingPanel() {
        JDouble power = new JDouble("Gamma", gamer.gamerParams.power, new Vec(0.000,0,0), new Vec(4.0,0,0), GamerParams.decimal);
        JDouble cutoff = new JDouble("Pixel cutoff", gamer.gamerParams.cutoff, new Vec(0.000,0,0), new Vec(1.0,0,0), GamerParams.decimal);
        JVector color = new JVector("Color", gamer.gamerParams.color, new Vec(0, 0, 0), new Vec(15,15,15), GamerParams.decimal);

        JVector noise = new JVector("Noise", gamer.gamerParams.noise, new Vec(0, 0, 0), new Vec(10,100,10), GamerParams.decimal);

        JDouble convolve = new JDouble("Convolution", gamer.gamerParams.convolve, new Vec(0.000,0,0), new Vec(10.0,0,0), GamerParams.decimal);

        JDouble noStars = new JDouble("Stars", gamer.gamerParams.noStars, new Vec(0.000,0,0), new Vec(10000,0,0), GamerParams.integer);
        JDouble starSpread = new JDouble("Stars spread", gamer.gamerParams.starsSpread, new Vec(0,0,0), new Vec(100,0,0), GamerParams.integer);

        setLayout(new GridLayout(3,2));
        
        
        color.postprocessing = true;
        cutoff.postprocessing = true;
        power.postprocessing = true;
        noise.postprocessing = true;
        convolve.postprocessing = true;
        noStars.postprocessing = true;
        starSpread.postprocessing = true;
               
        add(color);
        add(new JTripleValue(new JLabel("Image postprocessing"), power, cutoff, null));
        add(new JTripleValue(new JLabel("Noise"), convolve, noStars, starSpread));
        add(noise);

	}
	
	
}
